package com.ltx.service;

import com.ltx.dao.RecordMapper;
import com.ltx.pojo.Record;

import java.util.Date;
import java.util.List;

public class RecordServiceImpl implements RecordService{

    //引入dao层
    private RecordMapper recordMapper;
    public void setRecordMapper(RecordMapper recordMapper) {
        this.recordMapper = recordMapper;
    }

    @Override
    public List<Record> allRecord() {
        return recordMapper.allRecord();
    }

    @Override
    public List<Record> memberRecord(int mId) {
        return recordMapper.memberRecord(mId);
    }

    @Override
    public int startRecord(Record record) {
        return recordMapper.startRecord(record);
    }

    @Override
    public int overRecord(Record record) {
        return recordMapper.overRecord(record);
    }
}
